{extend name="$member_style_layout" /}

{block name="title"}积分消费日志{/block}
{block name="content"}
<div class="MainCont">
	<div class="head"><div class="tag">以下是你最近的积分赚取与消费记录,你当前的积分总数是：
	<span class="b red">{$userdb.money}</span> 
            个 </div></div>
    <div class="cont">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
          <tr>
            <th>项目</th>
            <th width="20%">积分数(个)</th>
            <th width="20%">日期</th>
            <th width="10%">详情</th>
            <!--<th width="10%">删除</th>-->
          </tr>
{volist name="listdb" id="rs"}
          <tr>            
            <td class="tL">{$rs.title|get_word="60"}</td>
            <td class="b">
            {gt name="$rs.money" value="0"}
            <font color=red>{$rs.money}</font>
            {else /}
            	{$rs.money}
            {/gt}
            </td>
            <td>{:date("Y-m-d H:i:s",$rs.posttime)}</td>           
            <td class="look"><a href="javascript:;" id="look">查看</a> <div class="show">{$rs.about}</div></td>
            <!--<td><a href="{:purl('delete',['id'=>$rs['id']])}">删除</a></td>-->
          </tr>
{/volist}

        </table>
        <div class="Showpage">{$pages}</div>
        
    </div>
</div>
<script>
$(".look div").hide();
$(".look").mouseover(function(){
   $(this).find("div").show();
});
$(".look").mouseout(function(){
   $(this).find("div").hide();
});
</script>
<style>
.look{position:relative;}
.show{background:#fff; border:1px solid #f90; width:200px; padding:10px; border-radius:5px; line-height:30px; position:absolute; top:10px; right:100px; z-index:10;}
</style>

{/block}